package com.fy.utils;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * 手机号验证
 **/
public class MobilelUtil {

    public static boolean telCheck(String tel){
        Pattern p = Pattern.compile("^((1\\d{9}$)|(15[0,1,2,3,5,6,7,8,9]\\d{8}$)|(18[0,2,5,6,7,8,9]\\d{8}$)|(147\\d{8})$)");
        Matcher m = p.matcher(tel);
        return m.matches();
    }
}
